package icu.thatyear.main.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import icu.thatyear.main.entity.TzSysUser;
import icu.thatyear.main.mapper.TzSysUserMapper;
import icu.thatyear.main.service.ITzSysUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 系统用户 服务实现类
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Service
public class TzSysUserServiceImpl extends ServiceImpl<TzSysUserMapper, TzSysUser> implements ITzSysUserService {



    @Override
    public TzSysUser getByUserName(String username) {
        LambdaQueryWrapper<TzSysUser> lqw  = new LambdaQueryWrapper<>();
        lqw.eq(TzSysUser::getUsername,username);
        return getOne(lqw);
    }
}
